<?php
abstract class Pageley_Util_AbstractWriter implements Pageley_Util_Writer {
	
	public function writeLine($text) {
		$this->write($text . "\n");
	}
    
    public function stream($reader) {
        $buffer = null;
        $buffer = $reader->read(4096);
        while($buffer !== null) {
            $this->write($buffer);
            $buffer = $reader->read(4096);
        }
    }
}